package com.xgimi.open.skill.datamanager.service.api;

import com.xgimi.commons.base.Result;
import com.xgimi.open.skill.datamanager.service.request.SkillReqDTO;
import com.xgimi.open.skill.datamanager.service.response.SkillRespDTO;
import com.xgimi.open.skill.datamanager.service.response.page.PageResult;

import java.util.List;
import java.util.Map;

/**
 * @author coderzpw.zhang
 * @version 1.0
 * @description 描述
 * @date 2023/3/3 14:20
 */
public interface SkillRpcService {

    public Result<Boolean> create(SkillReqDTO skillReqDTO);


    public Result<PageResult<SkillRespDTO>> pageQuery(SkillReqDTO skillReqDTO);


    public Result<Boolean> update(SkillReqDTO skillReqDTO);


    public Result<Boolean> topSkill(SkillReqDTO skillReqDTO);


    public Result<Boolean> cancelTop(SkillReqDTO skillReqDTO);


    public Result<Boolean> delete(SkillReqDTO skillReqDTO);

    public Result<SkillRespDTO> queryById(Long id);

    public Result<List<SkillRespDTO>> getPublishedSkill();

    public Result<List<SkillRespDTO>> getAllSkill();
    public Result<Map<String, List<String>>> getOnlineAndTestSkillIds();
}
